package gatperdut.chato.core.interpreter;

import gatperdut.chato.core.entities.PlayerController;
import gatperdut.chato.core.interpreter.login.PlayerLogin;
import gatperdut.chato.core.interpreter.mainmenu.PlayerMainMenu;

public class PlayerInterpreter extends BaseInterpreter {

    private PlayerLogin playerLogin;

    private PlayerMainMenu playerMainMenu;

    public PlayerInterpreter( PlayerController controller ) {
        super( controller );
    }

    @Override
    public boolean canCommand() { // TODO move to controller
        return true;
    }

    @Override
    public boolean canEdit() { // TODO move to controller
        return true;
    }

    public PlayerLogin getPlayerLogin() {
        return playerLogin;
    }

    public void setPlayerLogin( PlayerLogin playerLogin ) {
        this.playerLogin = playerLogin;
    }

    public PlayerMainMenu getPlayerMainMenu() {
        return playerMainMenu;
    }

    public void setPlayerMainMenu( PlayerMainMenu playerMainMenu ) {
        this.playerMainMenu = playerMainMenu;
    }

    public PlayerController getController() {
        return (PlayerController) super.getController();
    }
}
